import React from "react";
import { NavLink } from "react-router-dom";
import "./Nav.css";

export default function Nav() {
  return (
    <div className="nav">
      <NavLink to="/home">首页</NavLink>
      <NavLink to="/ref">Ref页</NavLink>
      <NavLink to="/hooks">hooks</NavLink>
      <NavLink to="/todolist">todolist</NavLink>
      <NavLink to="/heros">王者</NavLink>
      <NavLink to="/duanzi">段子</NavLink>
      <NavLink to="/news">新闻</NavLink>
      <NavLink to="/redux">Redux</NavLink>
    </div>
  );
}
